﻿@model IEnumerable<DA.Role>
@{
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
    ViewBag.Title = Translator.Translate("roles");
}
<h2>
    Index</h2>
<p>
    @Html.ActionLink(Translator.Translate("_create"), "Edit")
</p>
<table>
    <tr>
        <th>
            @Translator.Translate("roles_name")
        </th>
        <th>
        </th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.Name)
            </td>
            <td>
                @Html.ActionLink("Edit", "Edit", new { id = item.RoleId }) |
                @Html.ActionLink("Details", "Details", new { id = item.RoleId }) |
                @Html.ActionLink("Delete", "Delete", new { id = item.RoleId })
            </td>
        </tr>
    }
</table>
